﻿using MyX.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyX.Bus
{
    public interface XIMQ
    {
        /// <summary>
        /// 底层消息发送功能
        /// </summary>
        /// <param name="topic"></param>
        /// <param name="message"></param>
        void Send(string topic, XIMessage message);

        /// <summary>
        /// 注册消息总线
        /// </summary>
        /// <param name="bus"></param>
        void Register(XIMessageBus bus);

        /// <summary>
        /// 启动消息队列        
        /// </summary>
        void Start();
    }
}
